import java.util.Scanner;

/**
 * Created by dllo on 18/3/31.
 */
public class Test02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入任意整数");
        int a = scanner.nextInt();
        System.out.println("输入任意整数");
        int b = scanner.nextInt();
        System.out.println("输入任意整数");
        int c = scanner.nextInt();
        int max = a;
        max = max > b ? max : b;
        max = max > c ? max : c;
        System.out.println("最大值是"+max);
        int min = a;
        min = min < b ? min : b;
        min = min < c ? min : c;
        System.out.println("最小值是"+min);
    }
}
